//
//  QQNetworkCodecDelegate.h
//  QQNetworkEngine
//
//  Created by elvisgao on 2019/12/4.
//  Copyright © 2018 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol QQNetworkObjectProtocol;

NS_ASSUME_NONNULL_BEGIN

@protocol QQNetworkCodecDelegate <NSObject>

- (nullable NSData *)encodeReq:(id<QQNetworkObjectProtocol>)request error:(NSError **)outError;

- (nullable id<QQNetworkObjectProtocol>)decodeRspData:(NSData *)rspData request:(id<QQNetworkObjectProtocol>)request error:(NSError **)outError;

@end

NS_ASSUME_NONNULL_END
